package com.obixlabs.security.credentialsstore.model;


public final class TstEntityFactory {
	
	private TstEntityFactory(){}

	public static ObixGroups createTestGroups()
	{
		ObixGroups result = new ObixGroups();
		
		ObixGroup group = new ObixGroup();
		group.setName("SvnCommitters");
		group.setDescription("Those who commit to SVN repository.");
		result.add(group);
		
		group = new ObixGroup();
		group.setName("SvnBrowsers");
		group.setDescription("Those who can browse the SVN repository.");
		result.add(group);
			
		group = new ObixGroup();
		group.setName("WebUsers");
		group.setDescription("Those who can browse public websites.");
		result.add(group);
	
		return result;
	}

	public static ObixPermissions createTestPermissions()
	{
		ObixPermissions result = new ObixPermissions();
		
		ObixPermission permission = new ObixPermission();
		permission.setName("SvnCommitTestPerm");
		permission.setDescription("Commit to SVN repository.");
		result.add(permission);
		
		permission = new ObixPermission();
		permission.setName("SvnBrowseTestPerm");
		permission.setDescription("Browse SVN repository.");
		result.add(permission);
		
		permission = new ObixPermission();
		permission.setName("BrowseWebTestPerm");
		permission.setDescription("Browse public websites.");
		result.add(permission);
	
		return result;
	}	
}